﻿@model KL.Store.Web.Models.BrandsModel
@using KL.Store.Core
@{
    Layout = null;
}
@if (Model.Brands.Count > 0)
{
    <div class="product-filter">
        <div class="product-filter-inner">
            <h5 class="product-filter-title">Markalar</h5>
            <div class="product-filter-options product-filter-option-brand gray-skin">
                <ul>
                    @foreach (var item in Model.Brands)
                    {
        
                        <li>
                            <input type="checkbox" name="brand" value="@(item.BrandId)" id="brand_id_@(item.BrandId)" class="brand-selection" @{if (Model.SelectedBrands.Contains(item.BrandId.ToString()))
                                                                                                                                                {<text>checked="checked"</text>}} />
                            <label for="brand_id_@(item.BrandId)">@(item.BrandName)</label>
                        </li>
                    }
                </ul>
                <div class="clearfix"></div>
            </div>
            <script>
                $(".product-filter-option-brand").customScrollbar();
                $(".product-filter-option-brand .scroll-bar .thumb").html("<div class=\"thumb-image\"></div>");
            </script>
            <div class="clearfix"></div>
        </div>
    </div>
}